<template>
  <div class="main-box">
    <div class="main">
      <div class="search-box">
        <slot name="search"></slot>
      </div>

      <div class="table-box">
        <slot></slot>
      </div>
    </div>
  </div>
</template>
<script lang="ts">
  export default {
    name: 'LayoutPage',
  }
</script>

<style lang="scss" scoped>
  .main-box {
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
    background: $base-color-background;

    .main {
      box-sizing: border-box;
      width: 100%;
      height: auto;
      overflow: hidden;

      .search-box {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 20px 20px 0 20px;
        overflow: hidden;
        background-color: #ffffff;
        // border-radius: 5px;
        // border: 1px solid #e4e7ed;
        box-shadow: 0px 0 12px rgba(0, 0, 0, 0.05);
      }

      .table-box {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 20px;
        margin-top: 10px;
        overflow: hidden;
        background: #fff;
        // border-radius: 5px;
        // border: 1px solid #e4e7ed;
        box-shadow: 0px 0 12px rgba(0, 0, 0, 0.05);

        .operate-box {
          padding-bottom: 10px;
          text-align: right;
        }
      }
    }

    :deep(.custom-form) {
      .vxe-form--item {
        padding: 0 24px 20px 0;
      }

      .vxe-form--item-title-label {
        vertical-align: inherit;
      }

      .vxe-form--item-title {
        padding: 0 8px 0 0;
      }

      .custom-form-button {
        padding: 0 0 18px 0;
      }
    }

    :deep(.button-between) {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    :deep(.custom-divider) {
      position: relative;
      height: 1px;
      margin: 20px 0;
      background-color: #edeff2;

      &:before {
        position: absolute;
        top: 0;
        right: -20px;
        left: -20px;
        height: 1px;
        content: '';
        background-color: #edeff2;
      }
    }
  }
</style>
